{"ast":null,"code":"import $4HQTI$react, { useRef as $4HQTI$useRef, useEffect as $4HQTI$useEffect } from \"react\";\nimport { Picker as $4HQTI$Picker } from \"emoji-mart\";\nfunction $c02e6cf130881224$export$2e2bcd8739ae039(props) {\n  const ref = $4HQTI$useRef(null);\n  const instance = $4HQTI$useRef(null);\n  if (instance.current) instance.current.update(props);\n  $4HQTI$useEffect(() => {\n    instance.current = new $4HQTI$Picker({\n      ...props,\n      ref: ref\n    });\n    return () => {\n      instance.current = null;\n    };\n  }, []);\n  return /*#__PURE__*/$4HQTI$react.createElement('div', {\n    ref: ref\n  });\n}\nexport { $c02e6cf130881224$export$2e2bcd8739ae039 as default };","map":{"version":3,"mappings":";;kDAGoCA,KAAK,EAAE;EACzC,MAAMC,GAAG,GAAGC,aAAM,CAAC,IAAI;EACvB,MAAMC,QAAQ,GAAGD,aAAM,CAAC,IAAI;EAE5B,IAAIC,QAAQ,CAACC,OAAO,EAClBD,QAAQ,CAACC,OAAO,CAACC,MAAM,CAACL,KAAK;EAG/BM,gBAAS,OAAO;IACdH,QAAQ,CAACC,OAAO,GAAG,IAAIG,aAAM,CAAC;SAAKP,KAAK;WAAEC;IAAI,CAAC;IAE/C,OAAM,MAAO;MACXE,QAAQ,CAACC,OAAO,GAAG,IAAI;IACzB,CAAC;EACH,CAAC,EAAE,EAAE;EAEL,OAAM,aAACI,YAAK,CAACC,aAAa,CAAC,KAAK,EAAE;SAAER;EAAI,CAAC;AAC3C","names":["props","ref","$4HQTI$useRef","instance","current","update","$4HQTI$useEffect","$4HQTI$Picker","$4HQTI$react","createElement"],"sources":["/data/messenger.client/node_modules/@emoji-mart/react/dist/packages/emoji-mart-react/react.js"],"sourcesContent":["import React, { useEffect, useRef } from 'react'\nimport { Picker } from 'emoji-mart'\n\nexport default function EmojiPicker(props) {\n  const ref = useRef(null)\n  const instance = useRef(null)\n\n  if (instance.current) {\n    instance.current.update(props)\n  }\n\n  useEffect(() => {\n    instance.current = new Picker({ ...props, ref })\n\n    return () => {\n      instance.current = null\n    }\n  }, [])\n\n  return React.createElement('div', { ref })\n}\n"]},"metadata":{},"sourceType":"module"}